package com.ruicar.afs.cloud.product.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruicar.afs.cloud.product.entity.ProductAtom;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author changyu.gui
 * @version 1.0
 * @date 2020/4/22 16:48
 */
@Data
public class ProductAtomVo extends ProductAtom {
    @ApiModelProperty(value = "层级")
    private Integer level;

    @ApiModelProperty(value = "父id")
    private String parentId;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否勾选 前端所需")
    private Boolean checked = false;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否选中 前端所需")
    private Boolean selected = false;

    @TableField(exist = false)
    @ApiModelProperty(value = "产品原子树")
    private List<ProductAtomVo> children;
}
